#ifndef PID_H
#define PID_H

#define cooling 1
#define heating 0

struct {
unsigned short set_temperature;
float set_op;
unsigned char edge;
}str_PID;

typedef struct {
unsigned short temperature_max;
unsigned short temperature_min ;
float op_max;
float op_min;
unsigned short opV_max;
unsigned short opV_min;
}str_extremum;

void start_automation_setting(void);
void stop_automation_setting(void);
void resume_automation_setting(void);
void PID_update(float );
void PID_init(float ,float ,float ,short ,float,float );

void cooling_heating_cycles (unsigned char , str_extremum* );
#endif
